package pro.survey.analyzer.data;
// Generated 2013-05-11 13:57:43 by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Answers generated by hbm2java
 */
@Entity
@Table(name="answers")
public class Answers  implements java.io.Serializable {


     private Integer id;
     private Lectors lectors;
     private Imports imports;
     private Questions questions;
     private String type;
     private String value;
     private Date created;

    public Answers() {
        this.created = new Date();
    }

	
    public Answers(Lectors lectors, Imports imports, Questions questions, String value, Date created) {
        this.lectors = lectors;
        this.imports = imports;
        this.questions = questions;
        this.value = value;
        this.created = created;
    }
    public Answers(Lectors lectors, Imports imports, Questions questions, String type, String value, Date created) {
       this.lectors = lectors;
       this.imports = imports;
       this.questions = questions;
       this.type = type;
       this.value = value;
       this.created = created;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="lector_id", nullable=false)
    public Lectors getLectors() {
        return this.lectors;
    }
    
    public void setLectors(Lectors lectors) {
        this.lectors = lectors;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="import_id", nullable=false)
    public Imports getImports() {
        return this.imports;
    }
    
    public void setImports(Imports imports) {
        this.imports = imports;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="question_id", nullable=false)
    public Questions getQuestions() {
        return this.questions;
    }
    
    public void setQuestions(Questions questions) {
        this.questions = questions;
    }
    
    @Column(name="type", length=65535)
    public String getType() {
        return this.type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    @Column(name="value", nullable=false, length=65535)
    public String getValue() {
        return this.value;
    }
    
    public void setValue(String value) {
        this.value = value;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="created", nullable=false, length=19)
    public Date getCreated() {
        return this.created;
    }
    
    public void setCreated(Date created) {
        this.created = created;
    }




}


